import request from './http.js'
//获取列表
function getlist(){
 return request({
  url:'/frontpage'
 })
}
//父科室
function getdep(){
 return request({
  url:'/department'
 })
}
//子科室
function getreg(msg){
 return request({
  url:'/reglist',
  method:'get',
  data:msg
 })
}

//登录
function getlogin(msg){
	 return request({
		 url:'/wx_login',
		 method:'post',
		 data:msg
	 })
}
// function getepid(msg){
// 	return request({
// 		url:'/epidemic',
// 		method:'GET',
// 		data:msg
// 	})
// }
//获取坐标
function weather() {
 return request({
  url:`/weather?longitude=116.32645000000001&latitude=39.912330000000004`
 })
}
export {
 getlist,
 weather,
 getlogin,
 getdep,
 getreg

}